# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# TODO: Try to build it without GUI.
pkgname=diff-pdf
pkgver=0.4.1
pkgrel=2
pkgdesc="A simple tool for visually comparing two PDF files"
url="https://vslavik.github.io/diff-pdf/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # upstream doesn't have a test suite
makedepends="autoconf automake cairo-dev poppler-dev wxwidgets-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/vslavik/diff-pdf/archive/v$pkgver.tar.gz
	poppler-cairo.patch
	"

prepare() {
	default_prepare
	./bootstrap
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-silent-rules
	 make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8ba5dfee0b5222c79c8d6a3215c2e7df977ad02de5afeeb497c3d9e861ee312b3e1234c57132e0ea4cf6931cfdbdebd508ecfb6c2335cbe161121be6bbb343dc  diff-pdf-0.4.1.tar.gz
c450073624c7ad919a016817461c61e8d608d1069ba64123595361e9f783179fa1fb2e9bc549e1e694cdd928592bd468b3ffc8e5a698ebc9ad357746a66c4ee4  poppler-cairo.patch
"
